package cn.kgc.vue.common;

/**
 * @Author: 课工场
 * @Version: v1.0  2023/8/9
 * @Description:
 */
public enum ResponseStatus {
    STUDENTNO_EXIST(500,"学号已存在"),
    HAS_CHILDNODE(500,"含有子节点不能删除"),
    ROLE_USED(500,"角色名或权限字符被占用"),
    USER_EXIST(500,"用户名已存在"),
    AUTHORIZATION_ERROR(500,"没有操作权限,请联系管理员"),
    AUTHENTICATION_ERROR(500,"请认证后访问"),
    TOKEN_ERROR(500,"token异常"),
    TOKEN_EXPIRED(500,"token失效"),
    LOCKED_ACCOUNT(500,"用户被禁用,请联系管理员!!!"),
    INCORRECT_CREDENTIALS(500,"密码错误"),
    UNKNOWN_ACCOUNT(500,"用户名不存在!!!"),
    LOGIN_SUCCESS(200,"登录成功"),
    CODE_ERROR(500,"验证码错误!!!"),
    CODE_EXPIRE(500,"验证码失效!!!"),
    FAIL(500,"操作失败"),
    SUCCESS(200,"操作成功") ;

    private Integer code;
    private String msg;

    ResponseStatus(Integer code,String msg){
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
